@model Icms.WebUI.Dto.CaseInput
<h2 id='ct'>
    </h2>
<script type="text/javascript">
    $(function () {
        $.post('@Url.Action("GetParTitle", "Aja")', { id: $('#TypeId').val() }, function (d) {
            $('#ct').html('Dosar ' + d);
        });
    });
</script>
<div id="casecont">
    @using (Html.BeginForm())
    {    
        @Html.HiddenFor(o => o.Id)
        @Html.EditorFor(o => o.CreatedDate)
        <div class="bigz">
            @Html.EditorFor(o => o.Reference)
            @Html.HiddenFor(o => o.TypeId)
            @Html.EditorFor(o => o.TypeExamId)
            @Html.EditorFor(o => o.IndexId)
            @Html.EditorFor(o => o.TypeInitialisationId)
            @Html.EditorFor(o => o.RevisedNumber)
            @Html.EditorFor(o => o.RevisedTitle)
        </div>
        @Html.EditorFor(o => o.Nature)              
        @Html.EditorFor(o => o.IsSecret)         
        @Html.EditorFor(o => o.Comments)      
        @Html.EditorFor(o => o.Volumes)     
        @Html.EditorFor(o => o.Annex) 
        <div class="bigz">
            @Html.EditorFor(o => o.MainCaseTypeId)
            @Html.EditorFor(o => o.CaseTypes)
        </div> 
       if (Model.TypeId.Value.CaseKind() == 2)
       {
        @Html.EditorFor(o => o.ProsecutorNumber) 
        @Html.EditorFor(o => o.HasPleaBargaining)
        <div class="bigz">
            @Html.EditorFor(o => o.CrimeEnvironmentId)
        </div>     
       }
       if (Model.TypeId.Value.CaseKind() == 1 || Model.TypeId.Value.CaseKind() == 4)
       {
        @Html.EditorFor(o => o.StateFee)   
       }
        @Html.Partial("save")
    }
</div>
